using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainer")]
    public class Trainer
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "TrainerId", ResourceType = typeof(Resources.TrainersResource))]
        public int TrainerId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "FirstNameLocal", ResourceType = typeof(Resources.TrainersResource))]
        public string FirstNameLocal { get; set; }

		[DataMember, Display(Name = "LastNameLocal", ResourceType = typeof(Resources.TrainersResource))]
        public string LastNameLocal { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Display(Name = "Active", ResourceType = typeof(Resources.TrainersResource))]
        public decimal Active { get; set; }

		[DataMember, Display(Name = "Address", ResourceType = typeof(Resources.TrainersResource))]
        public string Address { get; set; }

		[DataMember, Display(Name = "PostalCode", ResourceType = typeof(Resources.TrainersResource))]
        public string PostalCode { get; set; }

		[DataMember, Display(Name = "Tel", ResourceType = typeof(Resources.TrainersResource))]
        public string Tel { get; set; }

		[DataMember, Display(Name = "Email", ResourceType = typeof(Resources.TrainersResource))]
        public string Email { get; set; }

		[DataMember, Display(Name = "Website", ResourceType = typeof(Resources.TrainersResource))]
        public string Website { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.TrainersResource))]
        public string Citizen { get; set; }

		[ForeignKey("District")]
		[DataMember, Display(Name = "DistrictId", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<int> DistrictId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainersResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.TrainersResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		public virtual MasNamePrefix NamePrefix { get; set; }

		public virtual Employee Emp { get; set; }

		public virtual HRM.MasDistrict District { get; set; }

    }
}